import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      redirect:"dataOverView",
      children: [
        {
          path: 'dataOverView',
          name: '数据概览',
          component: () => import('../views/menuList/dataOverView.vue'),
        },
        {
          path: 'candiDate',
          name: '候选人管理',
          component: () => import('../views/menuList/candiDate.vue'),
        },
        {
          path: 'topicType',
          name: '题目分类管理',
          component: () => import('../views/menuList/topicType.vue'),
        },
        {
          path: 'topicPaper',
          name: '题目集管理',
          component: () => import('../views/menuList/topicPaper.vue'),
        },
        {
          path: 'topic',
          name: '题目管理',
          component: () => import('../views/menuList/topic.vue'),
        },
        {
          path: 'interviewRecord',
          name: '面试记录',
          component: () => import('../views/menuList/interviewRecord.vue'),
        },
        {
          path: 'interviewArrangement',
          name: '面试安排',
          component: () => import('../views/menuList/interviewArrange.vue'),
        },
        {
          path: 'positionManagement',
          name: '职位管理',
          component: () => import('../views/menuList/positionManagement.vue'),
        },
        {
          path: 'interviewer',
          name: '面试官管理',
          component: () => import('../views/menuList/interviewer.vue'),
        },
        {
          path: 'systemSetting',
          name: '系统设置',
          component: () => import('../views/menuList/systemSetting.vue'),
        },
      ],
    },
  ],
})

export default router
